package com.testmanager.testmananger.quantitative.domain;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import com.testmanager.testmananger.quantitative.constants.BugStatus;
import lombok.Data;
import lombok.experimental.Accessors;


import javax.persistence.*;
import java.io.Serializable;
@Entity
@Data
@Accessors(chain = true)
@Table(name = "yx_bug_info")
public class BugInfoEntity extends AbstractAuditingEntity implements Serializable {
    private static final long serialVersionUID = 4164654011994959680L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    @Column(name = "iteration_id")
    private long iterationId;
    @Column(name = "bug_describe")
    private String describe;
    @Column
    @Convert(converter = BugStatusConvert.class)
    private BugStatus status;//new ,assigned,fixed,closed
    @Column(name = "bugno")
    private long bugNo;
    @Column(name = "bug_unfixed_count")
    private int bugUnfixedCount;
    @Column(name = "bug_level")
    private int bugLevel;

}
